package gui.小练习.打字游戏;

import java.util.Random;

/**
 * @Package gui.小练习.打字游戏
 * @Author shimmer
 * @Date 2020/8/7 10:58
 * @TODO
 */
public class EnemyInfo {
    int enemyX;
    int enemyY;
    Boolean ex;
    Boolean alive=true;
    int aim;// 携带的标记
    Random random = GameJPanel.random;

    public EnemyInfo() {
        // 随机位置
        this.enemyY=random.nextInt(200);
        this.ex=random.nextBoolean();
        if (ex) {
            this.enemyX=-100 - random.nextInt(100);
        } else {
            this.enemyX=1000 + random.nextInt(100);
        }
        // 随机标志
        this.aim=65+random.nextInt(26);// 不包含27
    }

    public void setEx(Boolean ex) {
        this.ex = ex;
    }

    public void setEnemyX(int enemyX) {
        this.enemyX = enemyX;
    }

    public void setEnemyY(int enemyY) {
        this.enemyY = enemyY;
    }

    public void setAlive(Boolean alive) {
        this.alive = alive;
    }

    public int getEnemyX() {
        return enemyX;
    }

    public int getEnemyY() {
        return enemyY;
    }

    public Boolean getEx() {
        return ex;
    }

    public Boolean getAlive() {
        return alive;
    }
}
